package com.selfdriving.activity;

import java.util.ArrayList;
import java.util.List;

import net.tsz.afinal.annotation.view.ViewInject;

import com.selfdriving.R;
import com.selfdriving.adapter.FeatureDiaryAdapter;
import com.selfdriving.bean.Feature;

import android.os.Bundle;
import android.widget.GridView;

public class FeatureDiaryActivity extends BaseActivity {
	@ViewInject(id = R.id.diary_gridview)
	GridView diary_gridview;
	
	private List<Feature> features;
	
	private FeatureDiaryAdapter adapter;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.feature_diary);
		features = new ArrayList<Feature>();
		for(int i=0;i<7;i++){
			Feature feature = new Feature();
			features.add(feature);
		}
		adapter = new FeatureDiaryAdapter(this, features);
		diary_gridview.setAdapter(adapter);
	}

}
